{include file="public/header" /}
<style>
    .layui-input-block{width: 80%}
    .layui-form-radio>.lay-skin-tag,
    .layui-form-checkbox>.lay-skin-tag{
        font-size: 13px;
        border-radius: 5px;
        height: 25px;
        line-height: 25px;
        margin-top: 7px;
        margin-right: 10px;
        color: #fff !important;
        background: #d2d2d2 !important;
    }
    .layui-form-checked>.lay-skin-tag,
    .layui-form-radioed>.lay-skin-tag {
        background-color: #16b777 !important;
    }
</style>
<body>
<div class="x-body">
    <form action="{:url('add_paper')}" class="layui-form" id="form">
        <input type="hidden" name="paper_id" value="{$info.id}"/>
        <div class="layui-form-item">
            <label class="layui-form-label">单选题 </label>
            <div class="layui-input-block">
                {volist name="radio_data" id="vo"}
                <input type="checkbox" name="radio[]" title="{$vo.title}" value="{$vo.id}" {if $vo.check == 1} checked {/if}>
                {/volist}
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">多选题</label>
            <div class="layui-input-block">
                {volist name="check_data" id="vo"}
                <input type="checkbox" name="check[]" title="{$vo.title}" value="{$vo.id}" {if $vo.check == 1} checked {/if}>
                {/volist}
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"></label>
            <button class="layui-btn" lay-filter="save" lay-submit formObj="#form">保存</button>
        </div>
    </form>
</div>
</body>
{include file="public/footer" /}
</html>